package com.jsoft.model.core;

import javax.persistence.EntityManager;
import java.util.List;

/**
 * Date: 18.07.13
 * Time: 22:42
 */

public interface Manager<E> {
    E create(E entity);

    void delete(E entity);

    E getById(Integer objectId);

    E getById(Long objectId);

    void update(E entity);

    List<E> getAllList();

    EntityManager getEntityManager();

    List<E> getByIds(Integer... ids);
}